package com.ww.springboot.boot.baseTest.design.代理;

/**
 * 描述：
 *
 * @author 🧑 ‍wanwei
 * @since 2023-02-04 16:09
 */
public class Player implements IPlayer{

    public Player() {
    }

    private String name;

    public Player(String name) {
        this.name = name;
    }

    @Override
    public String name() {
        return name;
    }

    @Override
    public void login() {
        System.out.println("登陆了~~");
    }

    @Override
    public void play() {
        System.out.println("在玩游戏~~");
    }
}
